package xin.ganbo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xin.ganbo.entity.SystemConfig;
import xin.ganbo.repository.SystemConfigRepository;
import xin.ganbo.service.SystemConfigService;

import java.util.List;

/**
 *
 * @author ganbo E-mail:bo.gan@56qq.com
 * @since 2017-12-04 10:30
 */
@Service
public class SystemConfigServiceImpl implements SystemConfigService {

    @Autowired
    private SystemConfigRepository systemConfigRepository;

    @Override
    public void save(SystemConfig systemConfig) {
        systemConfigRepository.save(systemConfig);
    }

    @Override
    public List<SystemConfig> findAll() {
        return systemConfigRepository.findAll();
    }
}
